<?php
class Zendvn_View_Helper_CmsMenu extends Zend_View_Helper_Abstract{	
	
	public function cmsMenu($name, $value = null,$attribs = null,$dbMenu = null ){
		if($name == 'admin'){
			$menu = new Zendvn_Menu_Admin($dbMenu);			
			$xhtml = $menu->create(1);
		}
		
		if($name == 'public'){
			$menu = new Zendvn_Menu_Admin($dbMenu);
			$xhtml = $menu->create(1);
		}
		
		return $xhtml;
	}
}



